//
//  EveryDetailCellCollectionViewCell.m
//  Present
//
//  Created by dllo on 15/10/17.
//  Copyright (c) 2015年 Lemon. All rights reserved.
//

#import "EveryDetailCellCollectionViewCell.h"
#import "EveryDetialModel.h"

@implementation EveryDetailCellCollectionViewCell



- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        [self creataSubviews];
    }
    return  self;
}

- (void)creataSubviews
{
    self.webView = [[UIWebView alloc] initWithFrame:self.contentView.bounds];
    self.webView.delegate = self;
    [self addSubview:self.webView];
    
    
}

- (void) setEveryDetialModel:(EveryDetialModel *)everyDetialModel
{
           _everyDetialModel =everyDetialModel ;
    
    NSLog(@"================= %@",_everyDetialModel.detail_html);
    
    [self.webView loadHTMLString:_everyDetialModel.detail_html baseURL:nil];
    
    //[self.webView reload];
}

@end
